package com.jnxg.smartcommunity.activity;


import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;

import com.jnxg.smartcommunity.manager.ActivityManager;


public class BaseActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState); 
    	 ActivityManager.getInstance().pushActivity(this);
    }
    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
    	 if(keyCode==KeyEvent.KEYCODE_BACK){
    		ActivityManager.getInstance().popActivity();
    		return true;
    	 }
    	return super.onKeyDown(keyCode, event);
    }
    public void onResume() {
	    super.onResume();

	}
	public void onPause() {
	    super.onPause();

	    
	}
}
